﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using System.Threading;
using System.Runtime.ConstrainedExecution;
using System.IO;
using System.Diagnostics;
using AdslMonitorLibrary;
using AdslMonitorlibrary;


namespace ADSLMonitor
{
    class Program : CriticalFinalizerObject
    {
        static void Main(string[] args)
        {
            if (AdslMonitor.SetupCategory())
                return;

            while (true)
            {
                AdslMonitor.Log();
                Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["interval"]));
            }
        }
    }
}
